package gwtmodule1.client.gui.shop;

import gwtmodule1.client.gui.shared.OrderSummary;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.FrameProvider;
import gwtmodule1.client.gui.utils.HSpacer;
import gwtmodule1.client.gui.utils.SwitchPage;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.VerticalPanel;

public class PageConfirm extends VerticalPanel implements FrameClient {

	private FrameProvider provider;

	private PageReciept pageReciept;

	public PageConfirm(FrameProvider provider) {
		super();
		this.provider = provider;
		pageReciept = new PageReciept(provider);
		add(new Title("Confirm order"));
		add(new OrderSummary());
		add(new HSpacer());
		Button b = new Button();
		b.setText("Confirm and Place Order");
		b.addClickListener(new SwitchPage(provider, pageReciept));
		add(b);
	}

	public void onShow(Object param) {

	}

}
